
<div class="suggestiontext">* Bạn đang thắc mắc một vấn đề nào đó có thể
	đặt câu hỏi tại đây! Chúng tôi sẽ giải đáp giúp bạn.</div> 
<div class="submit_button_make_question"> 
  <!--  <a  class="various fancybox.ajax" href="<?php echo site_url('game/ajax_show_question')?>">Đặt câu hỏi</a>-->
   <?php echo form_open_multipart('game/add/new'); ?> 
  <input id="gobutton"   name="submitbutton"   type="submit" value="Đặt câu hỏi" />
  <?php echo form_close(); ?>  
</div>
<!-- hidden inline form -->
<div id="inline_popup"> 
		<fieldset>
		<legend>Please complete the following form</legend>

		<label for="email"><span class="required">*</span> Email</label>
		<input name="email" type="email" id="email" class="txt" />

		<br />
		<label for="comments"><span class="required">*</span> Your comments</label>
		<textarea name="msg" id="msg"></textarea>

		<button id="send" class="button">Send E-mail</button>
		</fieldset> 
</div>

		<script type="text/javascript">
			function validateEmail(email) { 
				var reg = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
				return reg.test(email);
			}

			$(document).ready(function() {
				$(".modalbox").fancybox(); 
			});
			</script>
			
			
<div class="main_list_details">
	<div class="ttlqnm">
		<img src="<?php echo base_url('src/images/star_bright.png');?>" alt="Tam quốc"/>
		<span class="ttlqn">
			Câu hỏi mới nhất
		</span>
	</div>
	<div class="list_new_question">
	<?php $i = 0;?>
	<?php foreach($news_question as $newquest):?>
		<?php $i = $i + 1;?>
		
		<img src="<?php echo base_url('src/images/cauhoi.png');?>">
		<a href="<?php echo site_url('game/details/'.mb_strtolower(url_title(removesign($newquest->content_question))));?>"> <?php echo $newquest->content_question ;?></a>
		<br/>
		<div class="info_title">
		Người hỏi: <b><?php echo $newquest->fullname;?></b> | <?php echo $newquest->datecreate;?> | 
		
		<?php foreach($list_category as $cate):?>
			<?php if($newquest->cateid == $cate->id):?>
				<?php echo $cate->catename;?>
			<?php endif;?>
		<?php endforeach;?>
		</div>
		<?php if($i==1):?>
		<div class="question_title_list_hightlight">
		<?php else:?>
		<div class="question_title_list">
		<?php endif;?>
			<?php echo $newquest->content_question;?>
		</div> 
	<?php endforeach;?>
	</div>
</div>
